import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.Arrays;
import java.util.Date;
import java.util.Scanner;
import java.util.zip.DataFormatException;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86185
 * Date: 2023-06-05
 * Time: 8:00
 */
import java.util.*;
import java.text.DateFormat;

import java.text.SimpleDateFormat;

import java.text.ParseException;

public class Main {
    public static void main(String[] args) throws ParseException {
        Scanner scanner = new Scanner(System.in);
        String str1 = scanner.next();
        String str2 = scanner.next();
        DateFormat format = new SimpleDateFormat("MM,dd,yyyy");
        Date date = format.parse(str1);
        Date date1 = format.parse(str2);
        if(date.equals(date1)) {
            System.out.println("=");
        } else if (date.after(date1)) {
            System.out.println(">");
        } else {
            System.out.println("<");
        }
        long days = Math.abs(date1.getTime() - date.getTime()) / (1000 * 60 * 60 * 24);
        System.out.println(days);


    }
    public static void wordPositions(String str) {
        String[] strings = str.split(" ");
        int index = 0;
        for (int i = 0; i < strings.length; i++) {
            System.out.print(strings[i] + ": ");
            System.out.print(index + ", ");
            index = index + strings[i].length() + 1;
            System.out.println(strings[i].length());
        }
    }
    public static void main3(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String str = scanner.nextLine();
        wordPositions(str);
    }
    public static void main2(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String str = scanner.nextLine();
        int len = str.length();
        int[] num = new int[len];
        for (int i = 0; i < len; i++) {
            num[i] = str.charAt(i) - '0';
        }
        for (int i = 0; i < num.length - 1; i++) {
            for (int j = 0; j < num.length - 1 - i; j++) {
                if(num[i] < num[i + 1]) {
                    int t = num[i];
                    num[i] = num[i + 1];
                    num[i + 1] = t;
                }
            }
        }
        for (int i = 0; i < len; i++) {
            System.out.print(num[i]);
        }
    }
    public static void main1(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String str = scanner.nextLine();
        int n = str.length() % 5 + 1;
        StringBuffer stringBuffer = new StringBuffer();
        for (int i = 0; i < str.length(); i+=n) {
            stringBuffer.append(str.charAt(i));
        }
        stringBuffer = stringBuffer.reverse();
        System.out.println(stringBuffer);
    }
}
